package com.ld.poetry.aigc.iflycode.laihg;

public class CodeCorrect {
//  用于纠错的代码段
//    public static void main(String[] args) {
//        try {
//            int[] nums = {10, 9, 2, 5, 3, 7, 101, 18};
//            System.out.println(flightService.lengthOfLIS(nums));
//        }catch (Exception e){
//
//        }
//    }

    public static void main(String[] args) {
        FlightService flightService = new FlightService();
        try {
            int[] nums = {10, 9, 2, 5, 3, 7, 101, 18};
            System.out.println(flightService.lengthOfLIS(nums));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

class FlightService {
    public int lengthOfLIS(int[] nums) {
        // 实现方法逻辑
        return 0;
    }
}
